A simple, fast, least-recently-used (LRU) cache.
LRUCache uses a fixed-capacity array for storage. It provides O(1) insertion, and O(n) lookup. It does not require an allocator and can be used in no_std crates.
LRUCache
O(1)
O(n)
no_std
See the LRUCache docs for details.